<template>
  <div class="list">
    列表页
    <button>点击</button>
  </div>
</template>

<script>
import { search } from '../../api/search'

export default {
  name: 'list',
  data () {
    return {
      searchData: ''
    }
  },
  computed: {
  },
  methods: {
  },
  created () {
    const word = this.$route.query.word
    search(word).then(res => {
      console.log('searchData', res)
    })
  }
}
</script>

<style lang="scss" scoped>
  .list{
    height: 400px;
  }
</style>
